<?php
session_start();
if(isset ($_SESSION['username'])){

include '../config.php';

//functions
include DIR_FUNCTIONS . 'dt_admin_functions.php';

//classes
include DIR_CLASSES . 'database.class.php';
include DIR_CLASSES . 'html.class.php';
include DIR_CLASSES . 'pages.class.php';
include DIR_CLASSES . 'categories.class.php';
include DIR_CLASSES . 'newsletter.class.php';
include DIR_CLASSES . 'settings.class.php';
include DIR_CLASSES . 'zones.class.php';
include DIR_CLASSES . 'modules.class.php';
include DIR_CLASSES . 'news.class.php';
include DIR_CLASSES . 'top.class.php';
include DIR_CLASSES . 'picture.class.php';
include DIR_CLASSES . 'offers.class.php';
include DIR_CLASSES . 'pdf.class.php';

//CKEditor CKFinder
include DIR_EXT . 'ckeditor/ckeditor.php';
include DIR_EXT . 'ckfinder/ckfinder.php';

//template
include DIR_ROOT . 'templates/default/admin/header.php';
include DIR_ROOT . 'templates/default/admin/content.php';
include DIR_ROOT . 'templates/default/admin/footer.php';

}else {header("Location: login.php");}
?>